package com.angel.domain.angelmission.domainservice;

import com.angel.domain.angelhelp.valueobjects.AngelHelpId;
import com.angel.domain.angelmission.aggregates.AngelMission;
import com.angel.domain.angelmission.entities.AngelMissionInfo;
import com.angel.domain.angeluser.valueobjects.AngelUserId;

/*
 * 更新关注微信公众号： 为了offer
 * @author parkin
 * @description
 * @date 2021/11/17
 */
public class AngelMissionDomainService {

    /**
     * 分发任务
     * @param missionName
     * @param angelUserId
     * @param angelHelpId
     * @return
     */
    public static AngelMission distributeMission(String missionName,AngelUserId angelUserId, AngelHelpId angelHelpId) {
        // 分发任务
        AngelMission angelMission = new AngelMission(angelUserId,
                new AngelMissionInfo(
                        missionName,
                        angelHelpId
                )
        );

        return angelMission;

    }
}
